/**
 * @name AutoImportDeps
 * @description 按需加载，自动引入
 */
import AutoImport from 'unplugin-auto-import/vite';
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
export const AutoImportDeps = () => {
    return AutoImport({
        dts: 'types/auto-imports.d.ts',
        imports: [
            'vue',
            'pinia',
            'vue-router',
            {
                '@vueuse/core': [
                    'onClickOutside',
                    'useDateFormat',
                    'useVModel',
                    'useDebounceFn',
                    'useNow',
                    'useIntervalFn'
                ]
            }
        ],
        resolvers: [ElementPlusResolver()],
        cache: true,
        eslintrc: {
            enabled: true
        }
    });
};
